function P = featureParametersInitialization( M ,N, WB, LB )
%this function is responsable to initialize randomly the feature program
%parameters. these parameters have to be in ranges suitable to the size of
%data set. M is the number of samples in the data set and N is  the number
%of features. P is a matrix Nx2 where {w1,l1;w2,l2;..wn,ln}

    %initialization of P
    P = zeros(N,2);

    %min and max values for the lag
    LAGMN = LB(1);
    %LAGMAX = M - 1;
    LAGMAX = LB(2);
    
    %initializate the lags
    P(:,2) = round(LAGMN + (LAGMAX - LAGMN) .* rand(N,1));

    %initializate the window size
    WINSMIN = WB(1);
    %WINSMAX = M - P(:,2);
    WINSMAX = WB(2);
    

    P(:,1) = round(WINSMIN + (WINSMAX - WINSMIN) .* rand(N,1));
    
   
    
end

